|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeMaterial
public class J3DeMaterial
Contains and manages an instance of
javax.media.j3d.Material.
Material| Constructor Summary | |
|---|---|
J3DeMaterial(javax.media.j3d.Appearance appearance)
Creates an instance of J3DeMaterial
with the Material object from the
given Appearance object. |
|
| Method Summary | |
|---|---|
java.awt.Color |
getAmbientColor()
Returns the ambient color of the Material object. |
int |
getColorTarget()
Returns the current color target of the Material object. |
java.lang.String[] |
getColorTargetItems()
Returns the array of color target names. |
java.awt.Color |
getDiffuseColor()
Returns the diffuse color of the Material object. |
java.awt.Color |
getEmissiveColor()
Returns the emissive color of the Material object. |
boolean |
getLightingEnable()
Tests if light is used to calculate the appearance of the object this material describes. |
int |
getShininess()
Returns the shininess of the Material object. |
java.awt.Color |
getSpecularColor()
Returns the specular color of the Material object. |
void |
setAmbientColor(java.awt.Color color)
Applies the given ambient color to the Material object. |
void |
setColorTarget(int colorTarget)
Applies the given color target to the Material object. |
void |
setDiffuseColor(java.awt.Color color)
Applies the given diffuse color to the Material object. |
void |
setEmissiveColor(java.awt.Color color)
Applies the given emissive color to the Material object. |
void |
setLightingEnable(boolean state)
Specifies if light is used to calculate the appearance of the object this material describes. |
void |
setShininess(int value)
Applies the given shininess to the Material object. |
void |
setSpecularColor(java.awt.Color color)
Applies the given specular color to the Material object. |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
clone, equals, getChild, getIndex, getIndexOfChild, getNumberOfChildren, getParent, getParent, getType, hasNamedChild, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J3DeMaterial(javax.media.j3d.Appearance appearance)
J3DeMaterial
with the Material object from the
given Appearance object.
appearance - an instance of Appearance which
material component is not null| Method Detail |
|---|
public boolean getLightingEnable()
true if lighting is used,
otherwise falseMaterial.getLightingEnable()public void setLightingEnable(boolean state)
state - true if lighting is used,
otherwise falseMaterial.setLightingEnable(boolean state)public java.lang.String[] getColorTargetItems()
public int getColorTarget()
Material object.
Material.getColorTarget()public void setColorTarget(int colorTarget)
Material object.
colorTarget - new color targetMaterial.setColorTarget(int target)public java.awt.Color getDiffuseColor()
Material object.
Material.getDiffuseColor(Color3f color)public void setDiffuseColor(java.awt.Color color)
Material object.
color - new colorMaterial.setDiffuseColor(Color3f color)public java.awt.Color getAmbientColor()
Material object.
Material.getAmbientColor(Color3f color)public void setAmbientColor(java.awt.Color color)
Material object.
color - new colorMaterial.setAmbientColor(Color3f color)public java.awt.Color getSpecularColor()
Material object.
Material.getSpecularColor(Color3f color)public void setSpecularColor(java.awt.Color color)
Material object.
color - new colorMaterial.setSpecularColor(Color3f color)public java.awt.Color getEmissiveColor()
Material object.
Material.getEmissiveColor(Color3f color)public void setEmissiveColor(java.awt.Color color)
Material object.
color - new colorMaterial.setEmissiveColor(Color3f color)public int getShininess()
Material object.
Material.getShininess()public void setShininess(int value)
Material object.
value - new value shininessMaterial.setShininess(float s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||